package com.chinaunicom.system.service;

import java.util.List;

import com.chinaunicom.system.dto.RoleDto;
import com.chinaunicom.system.model.Role;

public interface IRoleService {
    int deleteByPrimaryKey(Integer nRoleid)throws Exception;

    int insert(Role record)throws Exception;

    int insertSelective(Role record)throws Exception;

    Role selectByPrimaryKey(Integer nRoleid)throws Exception;

    int updateByPrimaryKeySelective(Role record)throws Exception;

    int updateByPrimaryKey(Role record)throws Exception;

	List<Role> query() throws Exception;

	List<Role> queryByName(String vRolename);

	void save(RoleDto dto) throws Exception;

	RoleDto queryById(Integer id) throws Exception;

	void update(RoleDto dto) throws Exception;

	void delete(Integer id) throws Exception;
}
